//高度、宽度拓展
.w-full {
  width: 100%;
}
.w-screen {
  width: 100vw;
}
.min-w-screen {
	min-width: 100vw;
}
.h-full {
  height: 100%;
}
.h-screen {
	height: calc(100vh - var(--window-bottom) - var(--window-top));
}
.h-100vh {
  height: 100vh;
}
.btn-h-32 {
	height: 32px !important;
}
.min-h-screen {
	min-height: calc(100vh - var(--window-bottom) - var(--window-top));
}
.absolute-full {
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	z-index: 10;
}
$num: 41; //循环计数器
$sum: 60; //循环次数，用于控制生成calss的数量
@while $num < ($sum + 1) {
	.w-#{$num} {
	  width: #{$num * 2}rpx;
	}
	.h-#{$num} {
	  height: #{$num * 2}rpx;
	}
	$num: $num + 1;
}

.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.sticky {
  position: sticky !important;
	top: var(--window-top);
	z-index: 10;
}
// 浮动
.float-right {
  float: right;
}
.float-left {
  float: left;
}
.float-none {
  float: none;
}
.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}
// 元素类型
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
// 颜色bacground-color 、color
.text-black {
  color: #000;
}
.text-white {
  color: #fff;
}
.text-red {
	color: #e1251b;
}
.bg-black {
  background-color: #000;
}
.bg-white {
  background-color: #fff;
}
.line-through {
	text-decoration: line-through;
}
.underline {
	text-decoration: underline;
}
// text拓展
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-justify {
  text-align: justify;
}
.text-last-justify {
	text-align: justify;
	text-align-last: justify;
}
.text-bold {
  font-weight: bold;
}
.font-400 {
	font-weight: 400;
}
.font-500 {
	font-weight: 500;
}
.font-600 {
	font-weight: 600;
}
.font-bold {
	font-weight: bold;
}
.hidden, .hide {
	display: none;
}
.overflow-auto {
	overflow: auto;
}
.overflow-x-auto {
	overflow-x: auto;
}
.overflow-y-auto {
	overflow-y: auto;
}
.overflow-hidden {
	overflow: hidden;
}
.overflow-x-hidden {
	overflow-x: hidden;
}
.overflow-y-hidden {
	overflow-y: hidden;
}
.overflow-scroll {
	overflow: scroll;
}
.overflow-x-scroll {
	overflow-x: scroll;
}
.overflow-y-scroll {
	overflow-y: scroll;
}
.rounded {
 border-radius: 50%
}
.opacity-0 {
	opacity: 0;
}
.mx-auto {
	margin-left: auto;
	margin-right: auto;
}
/* 细边框 */
.hair-t,
.hair-l,
.hair-r,
.hair-b,
.hair-s,
.hair-x,
.hair-y {
	position: relative;
	&::after {
		position: absolute;
		box-sizing: border-box;
		content: '';
		pointer-events: none;
		top: -50%;
		right: -50%;
		bottom: -50%;
		left: -50%;
		border: 0 solid #ddd;
		-webkit-transform: scale(0.5);
		transform: scale(0.5);
	}
}
.hair-s::after {
	border-width: 1px;
}
.hair-x::after {
	border-width: 0 1px;
}
.hair-y::after {
	border-width: 1px 0;
}
.hair-t::after {
	border-top-width: 1px;
}
.hair-b::after {
	border-bottom-width: 1px;
}
.hair-l::after {
	border-left-width: 1px;
}
.hair-r::after {
	border-right-width: 1px;
}
.hair-s-r::after {
	border-radius: 40rpx;
}
.shadow {
	box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1) ;
}
.shadow-b {
	box-shadow: 0px 14rpx 14rpx -14rpx #a9a9a9;
}
.shadow-r{
	box-shadow: 14rpx 14rpx 14rpx -14rpx #a9a9a9;
}
.shadow-l{
	box-shadow: -14rpx 0px 14rpx -14rpx #a9a9a9;
}
.shadow-t {
	box-shadow: 0px -14rpx 14rpx -14rpx #a9a9a9;
}
.hover {
	opacity: .8;
}
.text-info {
	color: $u-info;
}
.text-primary {
	color: $u-primary;
}
.text-error {
	color: $u-error;
}
.text-success {
	color: $u-success;
}
.text-warn, .text-warning {
	color: $u-warning;
}
.text-main {
	color: $u-main-color;
}
.text-content {
	color: $u-content-color;
}
.text-tips {
	color: $u-tips-color;
}
.text-light {
	color: $u-light-color;
}
.bg-white {
	background-color: white;
}
.bg-black {
	background-color: black;
}
.bg-color {
	background-color: $u-bg-color;
}
.bg-primary {
	background-color: $u-primary;
}
.bg-error {
	background-color: $u-error;
}
.bg-fa {
	background-color: #fafafa;
}
.bg-f9 {
	background-color: #f9f9f9;
}
.bg-f8 {
	background-color: #f8f8f8;
}
.bg-f1 {
	background-color: #f1f1f1;
}
.text-placeholder {
	color: rgb(192, 196, 204);
}
.border-box {
	box-sizing: border-box;
}
.content-box {
	box-sizing: content-box;
}

//flex
.flex {
  display: flex;
}
.flex-1 {
  flex: 1;
}
.flex-2 {
	flex: 2;
}
.flex-3 {
	flex: 3;
}
.flex-shrink {
	flex-shrink: 0;
}
.flex-auto {
  flex: 1 1 auto;
}
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.flex-row {
  flex-direction: row;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-nowrap {
  flex-wrap: nowrap;
}
.items-start {
	align-items: flex-start;
}
.items-end {
	align-items: flex-end;
}
.items-center	{
	align-items: center;
}
.items-baseline {
	align-items: baseline;
}
.items-stretch {
	align-items: stretch;
}
.justify-start {
  justify-content: flex-start;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-around {
  justify-content: space-around;
}
.justify-evenly {
  justify-content: space-evenly;
}
.content-start {
  align-content: flex-start;
}
.content-end {
  align-content: flex-end;
}
.content-center {
  align-content: center;
}
.justify-between {
  align-content: space-between;
}
.content-around {
  align-content: space-around;
}
.content-evenly {
  align-content: space-evenly;
}

.flex-w {
	@extend .flex;
	@extend .flex-wrap;
}

.flex-a {
	@extend .flex;
	@extend .items-center;
}

.flex-e {
	@extend .flex;
	@extend .items-end;
}

.flex-ae {
	@extend .flex;
	@extend .items-center;
	@extend .justify-end;
}

.flex-aa {
	@extend .flex;
	@extend .items-center;
	justify-content: space-around;
}

.flex-c {
	@extend .flex;
	@extend .justify-center;
}

.flex-ca {
	@extend .flex;
	@extend .items-center;
	@extend .justify-center;
}

.flex-b {
	@extend .flex;
	@extend .justify-between;
}

.flex-ba {
	@extend .flex-b;
	@extend .items-center;
}

.flex-v {
	@extend .flex;
	@extend .flex-col;
}

.flex-va {
	@extend .flex-v;
	@extend .justify-center;
}

.flex-vc {
	@extend .flex-v;
	@extend .items-center;
}

.flex-vb {
	@extend .flex-v;
	@extend .justify-between;
}

.flex-vca {
	@extend .flex-v;
	@extend .justify-center;
	@extend .items-center;
}

.flex-vba {
	@extend .flex-vb;
	@extend .items-center;
}

.flex-e {
	@extend .flex;
	@extend .justify-end;
}